package com.tensquare.notice.client;

import com.tensquare.entity.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: xxx
 * @Date: 2022/11/10 20:07
 * @Description: 用户Client
 */
@FeignClient("tensquare-user")
public interface UserClient {


    @ApiOperation(value = "根据用户id查询用户")
    @PostMapping("/user")
    public Result selectByUserId(@RequestParam(value = "userId") String userId);
}
